package d2_reflect_test;

/**
 * @Author:Cjj
 * @Date:2025/5/6
 * Cat类
 */
public class Cat {
    private String name;
    private int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Cat() {
        System.out.println("无参构造方法");
    }

    public Cat(String name, int age){
        System.out.println("有参数构造器执行了！！");
        this.name=name;
        this.age=age;
    }
}
